import request from "@/utils/request";

/**
 * @description 列表
 * @param params
 * @returns {*}
 */
export function list(params){
    return request({
        url:'/user/userList',
        method:'GET',
        params
    })
}

/**
 * @description 删除
 * @param id
 * @returns {*}
 */
export function deleteRow(id){
    return request({
        url:'/animalRescue/delAnimalRescue',
        method:'GET',
        params:{id}
    })
}
/**
 * @description 详情
 * @param params
 * @returns {*}
 */
export function detail(params){
    return request({
        url:'/user/getUserById',
        method:'GET',
        params
    })
}

/**
 * @description 用户数据摘要
 * @param params
 * @returns {*}
 */
export function dataSummary(params){
    return request({
        url:'/user/userDataSummary',
        method:'GET',
        params
    })
}

export function getInviteList(params){
    return request({
        url:'/inviteRecord/userList',
        method:'GET',
        params
    })
}

export function grant(id,voucherAmount,integral){
    return request({
        url:'/user/userGrant',
        method:'GET',
        params:{id,voucherAmount,integral}
    })
}
/**
 * @description 用户详情
 * @param params
 * @returns {*}
 */
export function getUserVoucherById(params){
    return request({
        url:'/user/getUserVoucherAndIntegral',
        method:'GET',
        params
    })
}
/**
 * @description 用户详情列表
 * @param params
 * @returns {*}
 */
export function getUserList(params){
    return request({
        url:'/user/getUserVoucherAndIntegralList',
        method:'GET',
        params
    })
}
